package team.knowers.firm.dao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import team.knowers.firm.common.database.BaseDO;

import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("flight")
public class FlightDO extends BaseDO {
    private Integer id;
    //航班号
    private String flightNo;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;
    //头等舱价格
    private String headPrice;
    //经济舱价格
    private String ecoPrice;
    private String startPlace;
    private String endPlace;
    //航班状态，延误，准时等等
    private String status;
    //头等座位数
    private Integer headSeats;
    //经济座位数
    private Integer ecoSeats;
    //现在还有多少空位
    private Integer nowHeadSeats;
    private Integer nowEcoSeats;
}
